package com.photographysharing.mapper;

import com.photographysharing.dto.ReportDTO;
import com.photographysharing.entity.Reports;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Z
* @description 针对表【reports】的数据库操作Mapper
* @createDate 2024-06-10 22:57:39
* @Entity com.photographysharing.entity.Reports
*/
@Mapper
public interface ReportsMapper extends BaseMapper<Reports> {

    List<ReportDTO> selectByPag(@Param("index") int index, @Param("size") int size,@Param("name") String name,@Param("userName") String userName, @Param("status") int status,@Param("typeId") int typeId);

    int selectByPagCount(@Param("name") String name, @Param("userName") String userName,@Param("status") int status, @Param("typeId") int typeId);
}




